import 'package:flutter/material.dart';

class UserProvider with ChangeNotifier {
  String _username = '未登录';
  String _avatarPath = 'lib/assets/logo.png';

  String get username => _username;
  String get avatarPath => _avatarPath;

  void updateUserInfo(String username, String avatarPath) {
    _username = username;
    _avatarPath = avatarPath;
    notifyListeners();
  }
}
